package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.dto.Simple;
import com.itheima.pojo.Subjects;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SubjectsMapper extends BaseMapper<Subjects> {
    @Select("SELECT id value,subjectName label from hm_subjects")
    List<Simple> selectIdAndName();
}
